package com.stylefeng.guns.modular.system.service.impl;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.stylefeng.guns.common.persistence.dao.TDriverMapper;
import com.stylefeng.guns.common.persistence.model.TDriver;
import com.stylefeng.guns.core.datascope.DataScope;
import com.stylefeng.guns.modular.system.service.ITDriverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author stylefeng123
 * @since 2018-01-30
 */
@Service
public class TDriverServiceImpl extends ServiceImpl<TDriverMapper, TDriver> implements ITDriverService {
    @Autowired
    TDriverMapper driverMapper;


    @Override
    public List<Map<String, Object>> selectDriverList(Pagination page, DataScope dataScope, String name, Integer deptid) {
        return driverMapper.selectDriverList(page,dataScope,name,deptid);
    }

    @Override
    public TDriver getByDriver(String driver_name, Integer id) {
        return driverMapper.getByDriver(driver_name,id);
    }
}
